#ifndef __VIEW_REFRESH_H
#define __VIEW_REFRESH_H
#ifdef __cplusplus
extern "C"
{
#endif

    typedef void (*view_refresh_block_t)(view_t *, int, int, int, int);

    int ViewRefreshInit();
    void ViewRefreshRectFromBottom(view_t *view, int x, int y, uint32_t width, uint32_t height);
    void ViewRefreshFromBottom(view_t *view, int left, int top, int right, int bottom);
    void ViewRefreshRect(view_t *view, int x, int y, uint32_t width, uint32_t height);
    void ViewRefresh(view_t *view, int left, int top, int right, int bottom);
    void ViewRefreshByZ(int left, int top, int right, int bottom, int z0, int z1);
    void ViewRefreshMap(int left, int top, int right, int bottom, int z0);
    void ViewDumpMap(int left, int top, int right, int bottom);
    
#ifdef __cplusplus
}
#endif
#endif